package com.zhangwei.zk1018.dao;

import com.zhangwei.zk1018.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangwei.zk1018.entity.GoodsVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-10-18
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    List<Goods> getList(GoodsVo vo);


    Goods getGoodsById(Integer id);

    @Delete("delete from goods where gid in (${gids})")
    Integer delAll(@Param("gids") String gids);
}
